package com.bw.service;

import com.bw.domain.Major;
import com.bw.domain.Stu;
import com.bw.mapper.StuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    StuMapper stuMapper;


    @Override
    public int myadd(Stu stu) {
        return stuMapper.myadd(stu);
    }

    @Override
    public List<Major> get2() {
        return stuMapper.get2();
    }
}
